import request from "@/utils/request";

export const add = (params) => {
  const { name, namePinyin, namePy } = params;
  return request.post("/system/station/add", {
    name,
    namePinyin,
    namePy,
  });
};

export const getPage = (pageNo, pageSize) => {
  return request.post("/system/station/page", {
    pageNo,
    pageSize,
  });
};

export const remove = (id) => {
  return request.delete(`/system/station/remove/${id}`);
};

export const edit = (params) => {
  const { id, name, namePinyin, namePy } = params;
  return request.post("/system/station/edit", {
    id,
    name,
    namePinyin,
    namePy,
  });
};

export const getStationList = () => { 
  return request.post("/system/station/all", );
};